import request from '@/utils/request'

export function fetchProjectDeclareList() {
  return request({
    url: '/projectdeclares',
    method: 'get'
  })
}

export function fetchProjectDeclareById(id) {
  return request({
    url: `/projectdeclares/${id}`,
    method: 'get'
  })
}

export function createProjectDeclare(data) {
  return request({
    url: '/projectdeclares',
    method: 'post',
    data
  })
}

export function updateProjectDeclare(id, data) {
  return request({
    url: `/projectdeclares/${id}`,
    method: 'put',
    data
  })
}

export function deleteProjectDeclare(id) {
    return request({
      url: `/projectdeclares/${id}`,
      method: 'delete'
    })
}
  
